package day02;

import java.util.Random;

/**
 * Created by Shinelon on 2016/9/10.
 */
public class Ex1 {

    public static void main(String[] args) {

        //  变量类型  变量名  赋值号      值（对象）
            Random  random   =      new Random();
            int     i        =      5;
                            //方法名       参数
            //int     b        =      getNum.nextInt      (100);

            System.out.println(random.nextInt(100));

            Ex1     ex1        =  new Ex1();
        int result = ex1.add(5, 6);
        System.out.println(result);
    }

    public int add(int a, int b) {

        return a+b;
    }


}
